# -*- coding: utf-8 -*-
"""mysite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

from django.contrib import staticfiles

from cmdb import views
urlpatterns = [
    # url(r'^admin/', admin.site.urls),

    

    url(r'^homoionym_delete/$',views.homoionym_delete),
    url(r'^homoionym_modify/$',views.homoionym_modify),
    url(r'^homoionym_query/$',views.homoionym_query),
    url(r'^homoionym/$',views.homoionym),


    url(r'^antonym_delete/$',views.antonym_delete),
    url(r'^antonym_modify/$',views.antonym_modify),
    url(r'^antonym_query/$',views.antonym_query),
    url(r'^antonym/$',views.antonym),



    url(r'^idiom_story_delete/$',views.idiom_story_delete),
    url(r'^idiom_story_modify/$',views.idiom_story_modify),
    url(r'^idiom_story_query/$',views.idiom_story_query),
    url(r'^idiom_story/$',views.idiom_story),



    url(r'^blacklists_delete/$',views.blacklists_delete),
    url(r'^blacklists_modify/$',views.blacklists_modify),
    url(r'^blacklists_query/$',views.blacklists_query),
    url(r'^blacklists/$',views.blacklists),
    url(r'^$',views.index),#这个意思是，如果链接是url/index，那么交给views.py中的index函数去处理

    url(r'^static/(?P<path>.*)', 'django.views.static.serve', {'document_root': '/home/yuchi/coai/src/merge/mysite/static'}),  

]


urlpatterns += staticfiles_urlpatterns()
